<template>
    <div>
        <!-- 树菜单 -->
        <div class="block" ref="tree" style="margin-top: 10px;overflow-y: auto;">
            <el-tree :data="dataList" node-key="id" :props="defaultProps" :expand-on-click-node="false" accordion>
                 <span class="custom-tree-node" slot-scope="{ node, data }">
                    <span @click="openTableDialog(data)" :class="data.isUpdate == '1' ? 'tree-name-color-blue' : (data.hasSame == '1' ? 'tree-name-color' : '')"   style="font-size: 15px;font-weight: bold;">{{ node.label }}</span></span>
            </el-tree>
        </div>
    </div>
</template>
<script>
export default {
    name:'fileTree',
    props:{
        dataList:Array,
    },
    data(){
    },
    created(){},
    methods:{
        openTableDialog(){}
    }
}
</script>
<style>

</style>
